import request from "./request";

// 获取所有工序
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const GetAllProcess = (params: any) => request.post("/basics/process/queryProcessPageBean", params);

// 获取工序类型
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const GetProcessType = (params: any) => request.post("/basics/dictionary/getDictionaryByFid", params);

// 保存工序信息
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const SaveProcessMessage = (params: any) => request.post("/basics/process/saveProcess", params);
// 获取所有英雄信息
export const GetAllHero = <T>(params: T) => request.get("/hero", { params });
// 新增英雄信息
export const SaveHeroMessage = <T>(params: T) => request.post("/hero", params);
// 更新英雄信息
export const UpdateHeroMessage = <T>(params: T) => request.put("/hero", params);
// 删除英雄信息
export const DeleteHeroMessage = <T>(params: T) => request.delete("/hero", { params });
// 用户注册
export const UserRegister = <T>(params: T) => request.post("/register", params);
// 用户登录
export const UserLogin = <T>(params: T) => request.post("/login", params);
// 获取用户信息
export const GetAllUser = <T>(params: T) => request.get("/user", { params });
// 更新用户信息
export const UpdateUserMessage = <T>(params: T) => request.put("/user", params);
// 删除用户信息
export const DeleteUserMessage = <T>(params: T) => request.delete("/user", { params });